package com.sanerzone.smscenter.biz.config;

import com.sanerzone.smscenter.biz.cache.SubmitTemplateHelper;
import com.sanerzone.smscenter.biz.cache.TemplateCacheHelper;
import com.sanerzone.smscenter.biz.entity.SmsSubmitTemplate;
import com.sanerzone.smscenter.biz.entity.SmsTemplate;
import com.sanerzone.smscenter.biz.iface.SmsSubmitTemplateInterface;

public class SmsSubmitTemplateInterfaceImpl implements SmsSubmitTemplateInterface{

	@Override
	public boolean configSubmitTemplate(int type,String id, Object entity) {
		boolean flag = false;
		switch (type) {
			case 1:
				SubmitTemplateHelper.put(id, (SmsSubmitTemplate) entity);
				flag = true;
				break;
			case 2:
				SubmitTemplateHelper.del(id,(SmsSubmitTemplate) entity);
				flag = true;
				break;
			default:
				break;

		}
		return flag;
	}
}
